package com.itm.lqm.entity;

import java.util.HashSet;

import java.util.Set;
/**
 * 
 * @author aaa
 *
 */
public class Teacher {
	private int tid;
	private String tno;
	private String tname;
	private String sex;
	private String role;
	private Set<Student> students=new HashSet<Student>();
	
	
	
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	
	
	public Set<Student> getStudents() {
		return students;
	}
	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	
	public Teacher() {
		super();
	}
	public int getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	public String getTno() {
		return tno;
	}
	public void setTno(String tno) {
		this.tno = tno;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Override
	public String toString() {
		return "Teacher [tid=" + tid + ", tno=" + tno + ", tname=" + tname + ", role=" + role + ", sex="
				+ sex + "]";
	}
	public Teacher(int tid, String tno, String tname, String role, String sex) {
		super();
		this.tid = tid;
		this.tno = tno;
		this.tname = tname;
		this.role = role;
		this.sex = sex;
	}
	

	
}
